package day1;

/**
 * @author pacai
 * @version 1.0
 * 打印整数的32位二进制数
 */
public class PrintBin {
    public static void print(int num){
        for (int i = 31; i >= 0 ; i--) {
            System.out.print(((num & (1 << i)) == 0) ? "0" : "1");
        }
    }

    public static void main(String[] args){
//        int num = Integer.MIN_VALUE;
        int num = 0;
        num = ~num + 1;
//        print(num);
        System.out.println(num);
    }

}
